<div class="row">
 <small>
 <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>

  <div class="span9">
     <div class="clearfix txtleft search span8" style="background-color:#f8f8f8; padding:10px; margin:10px 0px;"> 
      <form action="/<*$controller*>/<*$action*>" method="get"   name="form1" class="form-horizontal">       
          <input type="text" class="span4 input-xlarge" placeholder="请输入集团姓名关键字"  name="groupname" id="groupname" value="<*$groupname*>" >
         <input type="submit" class="btn btn-success"  value="查询"  >
      </form>
	</div>	    

<table class="table">
<tr><td colspan="7"><*$page*></td></tr>
<tr>
<th>序号</th>
<th>集团名称</th>
<th>机构代码</th>
<th>集团管理员账号</th>
<th>密码</th>
<th>操作</th>
<th>&nbsp;</th>
</tr>
   <*foreach from=$result item=item key=key name=foo*>
   <*eval var=$item.groupid assign="groupid"*>
   <tr>
   <td><*$smarty.foreach.foo.iteration*></td>
   <td><*$item.groupname*></td>
   <td><*$item.groupname_en*></td>
   <td><*$admin.$groupid.adminname*></td>
   <td><*$admin.$groupid.password_code*></td>
   <td><a   role="button" class="btn" data-toggle="modal" onclick="javascript:resetpassword(<*$admin.$groupid.adminid*>)"><i class="icon-pencil"> </i> 初始化密码</a> <span>密码初始化为"111111"</span></td>
   <td>&nbsp;</td>
   </tr>
  <*/foreach*>
<tr><td colspan="7"><*$page*></td></tr>
</table>
</div>
</div> 

<script type="text/javascript" >
function resetpassword(id)
{ 
   window.location='/<*$controller*>/resetpassword/id/'+id;
}
</script>

</div>